package com.android.duininsuoai.model.detail;

import com.android.duininsuoai.utils.MyLog;
import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/11/7.
 */

public abstract class MainBannerDataCallback extends Callback<MainBannerData> {

    @Override
    public MainBannerData parseNetworkResponse(Response response, int id) throws Exception {

        String string = response.body().string();
        MyLog.e("MainBannerData",string );
        MainBannerData data = new Gson().fromJson(string,MainBannerData.class);
        return data;
    }
}